﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="findTeacher.aspx.cs" Inherits="adminstrator_findTeacher" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
    <style type="text/css">
        .auto-style1 {
            width: 331px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
      <div style="margin :0 auto;width :800px;text-align :center ;">
        <p style ="color :#0ff;font-size :16px;text-align :left "></p>
            <table border="1" style="margin :auto ;font-size:20px;background:#0ff">
             <tr style="text-align :center">
               <td style="font-weight :bold" class="auto-style4">选择查询字段</td>
                 <td class="auto-style2">
                 <asp:DropDownList runat ="server" ID="DropDownList1" Width ="348px" Height="78px">
             <asp:ListItem >教师编号</asp:ListItem>
            <asp:ListItem >教师姓名</asp:ListItem>
            <asp:ListItem >性别</asp:ListItem>
            <asp:ListItem >部门</asp:ListItem>
             <asp:ListItem >ID</asp:ListItem>
                 </asp:DropDownList>
               </td>  
                 <td class="auto-style1"><asp:TextBox runat ="server" ID ="TextBox1" Width="250px" Font-Size ="20px" MaxLength ="10"></asp:TextBox></td>
              </tr>
                <tr style="text-align :center">
                    <td colspan ="10" class="auto-style5"> 
                        <asp:Button runat ="server" ID ="ButtonOK" Text ="确定" Font-Size ="20px" OnClick ="ButtonOK_Click" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        <asp:Button runat ="server" ID ="ButtonReset" Text ="重置" Font-Size ="20px" OnClick ="ButtonReset_Click"  />
                    </td>
               </tr> 
            </table>
            <br />
            <asp:GridView runat ="server" ID ="GridView1" AllowPaging ="true" PageSize ="8" AutoGenerateColumns ="false" OnPageIndexChanging ="GridView1_PageIndexChanging" 
                OnRowDeleting ="GridView1_RowDeleting" OnRowEditing ="GridView1_RowEditing" Width ="800px">
                <Columns >
                    
                     <asp:CommandField ShowEditButton ="true" ItemStyle-Width="50px" />
                    <asp:BoundField DataField ="ID" HeaderText="ID" ItemStyle-Width="50px" />
                    <asp:BoundField DataField ="tNo" HeaderText="教师编号" ItemStyle-Width="80px" />
                    <asp:BoundField DataField ="tName" HeaderText="教师姓名" ItemStyle-Width="110px" />
                    <asp:BoundField DataField ="tSex" HeaderText="性别" ItemStyle-Width="100px" />
                    <asp:BoundField DataField ="tDepartment" HeaderText="部门" ItemStyle-Width="130px" />
                </Columns>
                <HeaderStyle BackColor ="#ff5050" Height="50px" Font-Size ="20px" />
            </asp:GridView> 
            <asp:Label runat ="server" ID="Label1" Font-Size ="30px" ForeColor ="Red" ></asp:Label>
    </div>
    </form>
</body></html>
